package com.itheima.homework;

public class Demo2 {
    public static void main(String[] args) {

        System.out.println( zuiBig(10,20));
        System.out.println( zuiBig(10,20,50));
    }

    public static int zuiBig(int a, int b) {
        int max = a > b ? a : b;
        return max;
    }

    public static int zuiBig(int a, int b, int c) {
        int m = a > b ? a : b;
        int max = m > c ? m : c;
        return max;
    }
}
